<template>
    <div>
       <img class="headerimg" src="https://dimg04.c-ctrip.com/images/zg0b13000000voozr60B7.png" alt="">
       <ul>
           <li v-for="item in minearray" class="mineitem" @click="itemclick(item)" :key="item.label">
               <span class="minetitle">{{item.label}}</span>
               <i class="cubeic-arrow"></i>
           </li>
       </ul>
    </div>
</template>

<script>
export default {
    data() {
        return {
            minearray:[
                {label:'商品收藏'},
                {label:'我的足迹'},
                {label:'店铺收藏'},
                {label:'我的订单'},
                {label:'退出',type:'exit'}
            ]
        }
    },
    methods: {
        itemclick(item){
            if (item.type=='exit') {
                this.$store.commit('settoken','');
                localStorage.removeItem("token")
                this.$router.push({path:'/login'})
            }
        }
    }
    
}
</script>

<style lang="stylus" scoped>
   .mineitem
       font-size 14px
       text-align left 
       height 50px
       line-height 50px
       padding-left 5%
       border-bottom 1px solid #eee
       .minetitle
           display inline-block
           width 90%
   .headerimg
       height 150px
       width  100%
    
</style>